<%@ page language="java" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="tag" prefix="PF" %>
<%--
  ~ This file Copyright (c) 2015. Walle.
  ~ (http://www.wallellen.com). All rights reserved.
  ~
  ~
  ~ This file is dual-licensed under both the
  ~ Walle Agreement (WA) and the GNU General Public License.
  ~ You may elect to use one or the other of these licenses.
  ~
  ~ This file is distributed in the hope that it will be
  ~ useful, but AS-IS and WITHOUT ANY WARRANTY; without even the
  ~ implied warranty of MERCHANTABILITY or FITNESS FOR A
  ~ PARTICULAR PURPOSE, TITLE, or NONINFRINGEMENT.
  ~ Redistribution, except as permitted by whichever of the GPL
  ~ or WA you select, is prohibited.
  ~
  ~ 1. For the GPL license (GPL), you can redistribute and/or
  ~ modify this file under the terms of the GNU General
  ~ Public License, Version 3, as published by the Free Software
  ~ Foundation.  You should have received a copy of the GNU
  ~ General Public License, Version 3 along with this program;
  ~ if not, write to the Free Software Foundation, Inc., 51
  ~ Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  ~
  ~ 2. For the Walle Agreement (WA), this file
  ~ and the accompanying materials are made available under the
  ~ terms of the WA which accompanies this distribution, and
  ~ is available at http://www.wallellen.com/agreement.html
  ~
  ~
  ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
  --%>

<div class="navbar navbar-inverse navbar-fixed-top" role="navigation"
     style="margin: 0px;">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse"
                data-target="#bs-example-navbar-collapse-1">
            <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span>
            <span class="icon-bar"></span> <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand"
           style="color: #ffffff; font-weight: bold; padding: 5px;"
           href="<PF:ParameterValue key="config.index.defaultpage"/>"> <img
                src="<PF:basePath/>text/img/logo.png" height="40" alt="Knowledge"
                title="Knowledge" align="middle"/>
        </a>
    </div>
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">
            <li class="active"><a href="home/Pubindex.html"><span
                    class="glyphicon glyphicon-home"></span>&nbsp;资讯</a></li>
            <li class="active"><a href="webtype/view/Pub1.html"><span
                    class="glyphicon glyphicon-th"></span>&nbsp;分类</a></li>
            <li class="active"><a href="webgroup/PubHome.html"><span
                    class="glyphicon glyphicon-tree-conifer"></span>&nbsp;小组</a></li>
            <li class="active"><a href="webstat/PubHome.html"><span
                    class="glyphicon glyphicon-stats"></span>&nbsp;荣誉</a></li>
            <li class="active"><a href="websearch/PubHome.html"><span
                    class="glyphicon glyphicon-search"></span>&nbsp;检索</a></li>
        </ul>
        <form action="websearch/PubDo.do" method="post"
              id="lucenesearchFormId"
              class="navbar-form navbar-left hidden-xs hidden-sm" role="search">
            <div class="form-group">
                <input type="text" name="word" id="wordId" value="${word}"
                       class="form-control input-sm" placeholder="查询公开资源"> <input
                    type="hidden" id="pageNumId" name="pagenum">
            </div>
            <button type="submit" class="btn btn-default btn-sm">检索</button>
            <jsp:include
                    page="../operation/includeCreatOperate.jsp"></jsp:include>
        </form>
        <ul class="nav navbar-nav navbar-right" style="margin-right: 10px;">
            <c:if test="${USEROBJ==null}">
                <li class="active"><a href="login/webPage.html"><span
                        class="glyphicon glyphicon glyphicon-user"></span>&nbsp;登录</a></li>
            </c:if>
            <c:if test="${USEROBJ!=null}">
                <li class="active"><a href="webuser/PubHome.do"><span
                        class="glyphicon glyphicon-user"></span>&nbsp;${USEROBJ.name}</a></li>
                <li class="active"><a href="login/webout.html"><span
                        class="glyphicon glyphicon-off"></span>&nbsp;注销</a></li>
            </c:if>
        </ul>
    </div>
    <!-- /.navbar-collapse -->
</div>
<script type="text/javascript">
    function luceneSearch(key) {
        $('#wordId').val(key);
        $('#lucenesearchFormId').submit();
    }
    function luceneSearchGo(page) {
        $('#pageNumId').val(page);
        $('#lucenesearchFormId').submit();
    }
    //-->
</script>